Skip to main content

Flawed enforcement of business rules

1

We have to login using the following credentials:

UsernamePassword
wienerpeter

At the top of the page, we an see the following code:

NEWCUST5

If we scroll to the bottom, there is a newsletter that we can sign up for.

2

Once we signup for the newsletter, we get another code:

3

SIGNUP30

Now, all we have to do is add the "Lightweight l33t leather jacket" and apply the coupons in an alternating manner.

5

This works because the server checks if the coupon is not applied right after itself but does not check if it is applied after another coupon.

6

We have solved the lab.

7